//******************************************************************************
//    Student.java           Author:20172330
//
//    Represents a college syudent.
//******************************************************************************

public class Student
{
     private String firstname, lastname;
     private Address homeAddress, schoolAddress;
     //-------------------------------------------------------------------------
     //    Contructor: Sets up this studend with the specified values.
     //-------------------------------------------------------------------------

     public Student(String first, String last, Address home, Address school)
     {
          firstname = first;
          lastname = last;
          homeAddress = home;
          schoolAddress = school;
     }

     //-------------------------------------------------------------------------
     //    Returns a string decription of this Student object.
     //-------------------------------------------------------------------------
     public String toString()
     {
          String result;

          result = firstname + " " + lastname + "\n";
          result += "Home Address:\n" + homeAddress + "\n";
          result += "School Address:\n" + schoolAddress;

          return result;
     }
}

